PDF.co icon

PDF.co

Automate document workflows with OCR, AI invoice parsing, data extraction, conversion, form filling, merging/splitting, and barcode processing. Ideal for invoices, forms, and scanned files.

Search & Replace Text or Delete

AI-generated

Summary

Searches a PDF for specified text and deletes it, replaces it with text, or replaces it with an image. Configure the source PDF URL, choose an operation type, and provide the matching search and replacement values; optional settings control pages and PDF processing.

Inputs

  • PDF URL (required) — URL of the source PDF.
  • Operation Type — Choose Search and Delete Text, Search and Replace Text, or Search and Replace with Image.
  • Search and Delete Text — For deletion, add one or more text strings to find and remove.
  • Search and Replace Text — For text replacement, add one or more search and replacement text pairs.
  • Search Text — For image replacement, the text to find in the PDF.
  • Replacement Image URL — For image replacement, the URL of the image to use.
  • Pages — Optional page selection. Defaults to page 0 (the first page); supports ranges and negative page numbers as described in the field hint.
  • Advanced Options — Optional case-sensitive matching, custom processing profiles, output filename, source URL HTTP credentials, PDF password, output-link expiration, per-search replacement limit, regular-expression search, and callback URL.

Output shape

Not specified by the available source view.

The source pack contains only the operation function signature, so it does not show the request construction, response handling, or returned data shape.

Links

Discussion